$(function(){
  $('#js-btn-login').on('click',function(e){
    e.preventDefault();
    const data = $('#pas').serialize()
    console.log(data);
    let url = 'http://124.223.14.236:3001/api/user/login'
    axios({
      method:'post',
      url:url,
      data:data
    }).then(function(res){
      console.log(res);
      if (res.status !== 200) return alert("登录失败"+ res.msg);
      alert("登录成功");
    })
  })
  
})